import request from "./request";

//授权
export const login = (data) => {
  return request({
    url: "/api/Userinfo/login",
    data: data,
  });
}
//获取手机
export const getPhone = (data) => {
  return request({
    url: "/api/Userinfo/getPhone",
    contentType:"application/json",
    data: data,
  });
}
//获取用户信息
export const getUserinfo = (data) => {
  return request({
    url: "/api/Userinfo/getUserinfo",
    data: data,
  });
}

//修改用户信息-邮箱
export const editUserinfo = (data) => {
  return request({
    url: "/api/Userinfo/editUserinfo",
    data: data,
  });
}
//更新用户信息
export const updateUser = (data) => {
  return request({
    url: "/api/Userinfo/upUserInfo",
    data: data,
  });
}
//更新用户会员信息
export const getMemberInfo = (data) => {
  return request({
    url: "/api/apis/getMemberInfo",
    data: data,
  });
}
//更新用户会员信息
export const editMemberInfo = (data) => {
  return request({
    url: "/api/apis/editMemberInfo",
    data: data,
  });
}
//地址列表
export const getAddressList = (data) => {
  return request({
    url: "/api/Userinfo/getAddressList",
    data: data,
  });
}
//添加地址
export const addAddressList = (data) => {
  return request({
    url: "/api/Userinfo/addAddressList",
    data: data,
  });
}
//修改地址
export const editAddressList = (data) => {
  return request({
    url: "/api/Userinfo/editAddressList",
    data: data,
  });
}

//地址详情
export const getAddressDetail = (data) => {
  return request({
    url: "/api/Userinfo/getAddressDetail",
    data: data,
  });
}

//删除地址
export const delAddress = (data) => {
  return request({
    url: "/api/Userinfo/delAddress",
    data: data,
  });
}
//影集列表 
export const getAlbumList = (data) => {
  return request({
    url: "/api/Userinfo/getAlbumList",
    data: data,
  });
}
//影集详情
export const getAlbumDetail = (data) => {
  return request({
    url: "/api/Userinfo/getAlbumDetail",
    data: data,
  });
}

//点赞列表 
export const getZanList = (data) => {
  return request({
    url: "/api/Userinfo/getZanList",
    data: data,
  });
}

//意见反馈
export const addFeedBack = (data) => {
  return request({
    url: "/api/Userinfo/addFeedBack",
    data: data,
  });
}
//确认使用
export const confirmOrder = (data) => {
  return request({
    url: "/api/Userinfo/confirmOrder",
    data: data,
  });
}
//取消订单
export const cancelOrders = (data) => {
  return request({
    url: "/api/Userinfo/cancelOrder",
    data: data,
  });
}






